package com.mini.mysql.model;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@FieldNameConstants
@NoArgsConstructor
@AllArgsConstructor
@Entity
@DynamicInsert
@DynamicUpdate
@ApiModel(value = "广告课程关联表")
public class LessonAdInfo implements Serializable {
    @Id
    private Integer id;

    private Long miniLessonId;

    private String campaignName;

    private Date createTime;

    private Date updateTime;

}